#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int math(int a, int b)
{
	int ret = 0;
	while (ret = a % b)
	{
		a = b;
		b = ret;
	}
	return b;
}
int main()
{
	int a = 0;
	int b = 0;
	int ret = 0;
	scanf("%d %d", &a, &b);
	ret = math(a, b);
	printf("%d", a * b / ret);
	return 0;
}